package com.pomelo.kill.service.impl;

import com.pomelo.kill.service.StockService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.pomelo.kill.model.Stock;
import com.pomelo.kill.mapper.StockMapper;

@Service
public class StockServiceImpl implements StockService {

    @Resource
    private StockMapper stockMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return stockMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Stock record) {
        return stockMapper.insert(record);
    }

    @Override
    public int insertSelective(Stock record) {
        return stockMapper.insertSelective(record);
    }

    @Override
    public Stock selectByPrimaryKey(Integer id) {
        return stockMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Stock record) {
        return stockMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Stock record) {
        return stockMapper.updateByPrimaryKey(record);
    }

    @Override
    public Stock selectByGid(Integer gid) {
        return stockMapper.selectByGid(gid);
    }

}

